#pragma once
#include "Action.h"
#include "ImgResource.h"

ref class Link
{
private:
	int link_from_point;
	int link_to_point;
	int type;

	System::Windows::Forms::PictureBox^  sr;
	System::Windows::Forms::PictureBox^  vert;
	System::Windows::Forms::PictureBox^  hort;
	System::Windows::Forms::PictureBox^  arrow;
	
	int fromN;
	int toN;
	int fromAN;
	int toAN;
public:
	Action^ link_from;
	Action^ link_to;
	Link(ImgResource ^res,int type,System::Windows::Forms::ContextMenuStrip ^menuRB,int link_from_point,int link_to_point
									,Action^ link_from,Action^ link_to,int fromN,int toN,int fromAN,int toAN);
	void set(ImgResource ^res,int type,int link_from_point,int link_to_point,Action^ link_from,Action^ link_to,int fromN,int toN,int fromAN,int toAN);
	void paint(ImgResource ^res,int fromN,int toN,int fromAN,int toAN);
	void null();
	int get(char parameter);

	System::Windows::Forms::PictureBox^  getSr();
	System::Windows::Forms::PictureBox^  getVert();
	System::Windows::Forms::PictureBox^  getHort();
	System::Windows::Forms::PictureBox^  getArrow();
	Link^ MakeEqual(Link^ other,Action^ fromA,Action^ toA);
};
